package edu.gdpu.bytecode;

/**
 * @author mazebin
 * @date 2021年 07月09日 17:44:08
 * 条件判断指令
 */
public class ByteCodeTest10 {
    public static void main(String[] args) {
        int a=0;
        if(a == 0)
        {
            a =10;
        }
        else{
            a=20;
        }
        System.out.println(a);
    }
    /**
     Code:
     stack=1, locals=2, args_size=1
     0: iconst_0
     1: istore_1
     2: iload_1
     3: ifne          12    //如果不等于0，则跳转
     6: bipush        10
     8: istore_1
     9: goto          15
     12: bipush        20
     14: istore_1
     15: return

     */
}
